package com.inspinia.base.util;

/**
 * http响应码不是200或206的异常
 */
public class HttpStateCodeNot200Or206Exception extends Exception {

    private final String url;
    public static final String message = "http响应码不是200或206";

    public HttpStateCodeNot200Or206Exception(String url) {
        this.url = url;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public String getUrl() {
        return url;
    }
}